<script  lang="ts" setup>
import {useRoute} from "vue-router";
import {ref} from "vue";

const route = useRoute()
const {tags} = route.query
const userList = ref<any>([])
</script>

<template>
  <h2>搜索结果</h2>
  <div class="result">
    <van-card
      v-for="user in userList"
      num="2"
      price="10.00"
      desc="描述信息"
      :title="user.username"
      :thumb="user.avatarUrl"
    >
      <template #tag>
        <van-tag plain type="danger" v-for="tag in user.tags">
          {{tag}}
        </van-tag>
      </template>
      <view slot="footer">
        <van-button size="mini">联系我</van-button>
        <van-button size="mini">按钮</van-button>
      </view>
    </van-card>
  </div>
</template>

<style scoped lang="less">

</style>
